package com.cold.system.domain.bo;


import com.cold.common.core.validate.AddGroup;
import com.cold.common.core.validate.EditGroup;
import com.cold.common.mybatis.core.domain.Base1Entity;
import com.cold.system.domain.Chart;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 图表信息业务对象 chart
 *
 * @author 邓滔滔
 * @date 2024-10-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Chart.class, reverseConvertGenerate = false)
public class ChartBo extends Base1Entity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 图表名称
     */
    @NotBlank(message = "图表名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 分析目标
     */
    private String goal;

    /**
     * 图表数据
     */
    private String chartData;

    /**
     * 图表类型
     */
    private String chartType;

    /**
     * 生成的图表数据
     */
    private String genChart;

    /**
     * 生成的分析结论
     */
    private String genResult;

    /**
     * 状态
     */
    private Long status;

    /**
     * 执行信息
     */
    private String execMessage;


}
